import request from '@/utils/request'
export function list(params) {
    return request({
        url: '/admin/shop/list',
        method: 'get',
        params: params
    })
}

export function save(shop) {
    return request({
        url: '/admin/shop/save',
        method: 'post',
        data: shop
    })
}

export function del(ids) {
    return request({
        url: '/admin/shop/del/' + ids,
        method: 'post'
    })
}

export function update(shop) {
    return request({
        url: '/admin/shop/update',
        method: 'post',
        data: shop
    })
}

export function find(id) {
    return request({
        url: '/admin/shop/find/' + id,
        method: 'get'
    })
}
